<template>
  <div>
    <van-steps direction="vertical" :active="0">
      <van-step v-for="(item, index) in flowInfo" :key="index">
        <h3>{{ item.location }}</h3>
        <p>{{ item.time }}</p>
      </van-step>
    </van-steps>
  </div>
</template>

<script>
import { materialFlow } from "@/api";
export default {
  data() {
    return {
      flowInfo: [],
    };
  },
  methods: {
    // 查看订单物流
    async materialFlow() {
      let data = await materialFlow();
      this.flowInfo = data;
    },
  },
  mounted() {
    this.materialFlow();
  },
};
</script>
